<?php

class fav extends model {
	
	public function hasFav($user_id, $video_id) {
		$result = $this->loadBySQLWhere("user_id = ".(int) $user_id." AND video_id = '" . mysql_real_escape_string($video_id, parent::getDbLink()) . "'");
		return $result > 0 ? true : false;
	}
	
}

?>